package com.huawang.mdesign.model.service.request;


import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class QueryRelationshipEndDTO extends ProjectIdDTO {

    private String projectId;

    @NotBlank(message = ParamErrorConstants.NO_FIRSTEND_ID)
    @Schema(title = "关系一端模型的id")
    private String firstEndId;

    @Schema(title = "关系类型，关系的association")
    private String relationshipType;

    @Schema(title = "关系方向，in/out")
    private String direction;
}
